"use strict";

const { logger } = require("ee-core/log");
const msgChannel = "controller/global/message";
/**
 * 示例服务
 * @class
 */
class MessageService {
  /**
   * test
   */
  async test(args) {
    let obj = {
      status: "ok",
      params: args,
    };

    logger.info("MessageService obj:", obj);

    return obj;
  }
}
MessageService.toString = () => "[class MessageService]";

module.exports = {
  MessageService,
  msgChannel,
  messageService: new MessageService(),
};
